package com.brigadeba.framework.dao;

import java.util.List;

import com.brigadeba.framework.model.Player;
import com.brigadeba.framework.model.Team;

public interface PlayerDAO {
	public Player findPlayer(int id);
	
	/**
	 * 
	 * @param p Player to persist (merge or create)
	 * @return 
	 */
	public int persistPlayer(final Player p);
	
	/**
	 * Remove all players where Player == remove.equals()
	 * @return 1 : Well removed, 0 : Not found, -1 : Error
	 */
	public int removePlayer(Player remove);
	
	public List<Player> findPlayers(Team team);
}
